package com.aaa.web.dao.baterymangerdao;

import com.aaa.entity.BreakBattery;
import com.aaa.entity.ChangekBattery;
import com.aaa.entity.RepairBattery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * com.aaa.web.dao.baterymangerdao class
 *
 * @author Kevin Jia
 * @CLASS:ProblemBatteryDao
 * @Date: 14:48
 */
@Component
@Mapper
public interface ProblemBatteryDao {

    /**
     * @Description: 获取损坏电瓶
     * @Param: BreakBattery
     * @return: Object
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 15:01
     */
    List<BreakBattery> getProblemBatterys(BreakBattery breakBattery);


    /**
     * @Description: 分页查询
     * @Param: none
     * @return:Object
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 15:04
     */
    Integer getBreakBatteryCount();

    /**
     * @Description: 添加坏电瓶
     * @Param:BreakBattery
     * @return:void
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 15:07
     */
    void insertBreakBattery(BreakBattery breakBattery);

    /**
     * @Description: 假删除
     * @Param: String
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 15:15
     */
    void delBreakBattery(String id);

    /**
     * @Description: 修改
     * @Param: BreakBattery
     * @return: void
     * @Author: Kevin Jia
     * @Date: 2018/12/22
     * @Time: 15:40
     */
    void updateBreakBattery(BreakBattery breakBattery);

    /**
     * @Description: 获取站点名称
     * @Param: schoolId
     * @return:  List<BreakBattery>
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    List<BreakBattery> getAddNames(String schoolId);

    /**
     * @Description: 获取更换记录
     * @Param: changeBattery
     * @return:  List<ChangekBattery>
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    List<ChangekBattery> getChangeBatterys(ChangekBattery changeBattery);

    /**
     * @Description: 获取分页数据
     * @Param: none
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer getChangeCount();

    /**
     * @Description: 添加
     * @Param: changeBattery
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer addChangeBattery(ChangekBattery changeBattery);

    /**
     * @Description: 修改
     * @Param: changeBattery
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer updateChangeBattery(ChangekBattery changeBattery);

    /**
     * @Description: 删除
     * @Param: id
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer delChangeBattery(String id);

    /**
     * @Description: 获取修理记录
     * @Param: repairBattery
     * @return: List<RepairBattery>
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    List<RepairBattery> getRepairBatterys(RepairBattery repairBattery);

    /**
     * @Description: 获取分页数据
     * @Param: none
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer getRepairCount();

    /**
     * @Description: 添加
     * @Param: changeBattery
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer addRepairBattery(RepairBattery changeBattery);

    /**
     * @Description: 修改
     * @Param: repairBattery
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer updateRepairBattery(RepairBattery repairBattery);

    /**
     * @Description: 删除
     * @Param: id
     * @return: Integer
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 14:16
     */
    Integer delRepairBattery(String id);

    /**
     * @Description: 获取当前门店下的所有员工信息
     * @Param: schoolId
     * @return: List<RepairBattery>
     * @Author: Kevin Jia
     * @Date: 2018/12/24
     * @Time: 20:37
     */
    List<RepairBattery> getEmployeeName(String schoolId);
}
